﻿<UserControl x:Class="Coding4Fun.BoxingBots.Boxer.Controls.SensorData"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid Margin="12">
		<Grid.ColumnDefinitions>
			<ColumnDefinition Width="50" />
			<ColumnDefinition Width="50" />
		</Grid.ColumnDefinitions>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="50" />
			<RowDefinition Height="50" />
		</Grid.RowDefinitions>
		<TextBlock FontWeight="Bold" FontSize="16" Grid.ColumnSpan="10" Text="{Binding Title}" />
		<TextBlock 
			Grid.Row="1"
			Grid.ColumnSpan="2"
			Grid.RowSpan="2"
			VerticalAlignment="Center"
			HorizontalAlignment="Center"
			Text="{Binding Path=AverageSensor}" />
		
		<TextBlock 
						Grid.Column="0" 
						Grid.Row="1"
						VerticalAlignment="Center"
						HorizontalAlignment="Center"
						Text="{Binding Path=FrontLeftSensor}"
						/>
		<TextBlock 
						Grid.Column="1" 
						Grid.Row="1"
						VerticalAlignment="Center"
						HorizontalAlignment="Center"
						Text="{Binding Path=FrontRightSensor}"
						/>
		<TextBlock 
						Grid.Column="0" 
						Grid.Row="2"
						VerticalAlignment="Center"
						HorizontalAlignment="Center"
						Text="{Binding Path=RearLeftSensor}"
						/>
		<TextBlock 
						Grid.Column="2" 
						Grid.Row="2"
						VerticalAlignment="Center"
						HorizontalAlignment="Center"
						Text="{Binding Path=RearRightSensor}"
						/>
	</Grid>
</UserControl>
